#-*- coding: utf-8 -*-
#ficheiro: aula2.py
#autor: Gonçalo Lampreia
#Data: 30 de Setembro de 2013


print type(1), type(3.4), type((3+3j)+2)
print type("Treta"), type(True and False)

a = '1'
b = "Uma"

print type(a), type(b)
print type([1,2,3,[2,3]]), type((1,2,3))

class Teste:
    pass

print type(Teste)

obj = Teste()
print type(obj)

def func():
        return 3

print type(func),

print type(range(0,10))
print type(xrange(0,10))
print type(a> 10 if 10 else 2)
print type(a) == type("string") if "uma string" else "não sei"

c = type((3+3j)+2)

if c == type(3j+2):
    print "Number is complex"
elif c == type(1):
    print "Number is int"
else:
    print "Error"


